package com.example.b_308.myapplication.view.splash;

import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.PersistableBundle;

import com.example.b_308.myapplication.R;

import com.example.b_308.myapplication.controller.SplashController;
import com.example.b_308.myapplication.view.LoginActivity;
import com.example.b_308.myapplication.view.base.BaseActivity;

import java.util.List;


/**
 * Created by B-308 on 2017/11/15.
 */
public class SplashActivity extends BaseActivity implements ISplashView {
    SplashController splashCotroller;
    CountDownTimer countDownTimer = new CountDownTimer(1000,1000) {
        @Override
        public void onTick(long millisUntilFinished) {

        }

        @Override
        public void onFinish() {
            startActivity(new Intent(SplashActivity.this, LoginActivity.class));

        }
    };
    @Override
    public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState){
        super.onCreate(savedInstanceState,persistentState);
        setContentView(R.layout.activity_splash);
        splashCotroller = new SplashController(this);
        splashCotroller.check();
        countDownTimer.start();
    }
    @Override
    public void  haveNewVersion(){

    }

    @Override
    public void isFirstUsed() {

    }

    @Override
    public void haveUnAblePermission(List<String> permissions) {

    }


    public void haveUnAblePermission(){

    }

    @Override
    public void checkSuccess() {

    }



    @Override
    public void fail(String message) {

    }
}
